<template>
  <div class="app">
    <h2 ref="title2">你好</h2>
    <button @click="showLog">点我输出h2</button>
    <Preson ref="ren"/>
  </div>
</template>

<script lang="ts" setup name="App">
  import Preson from './components/Preson.vue';
  import {ref} from 'vue'

  let title2 = ref()
  let ren = ref()

  function showLog() {
    // console.log(title2.value)
    console.log(ren.value)
  }
</script>

<style scoped>
</style>